package cn.foodProject.gsonBean;

public class LoginGsonBean {

    /**
     * data : {"id":1,"name":"admin","telephone":"123456","password":"123"}
     * success : true
     * message : 登录成功
     */

    private User data;
    private boolean success;
    private String message;

    public User getData() {
        return data;
    }

    public void setData(User data) {
        this.data = data;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "LoginGsonBean{" +
                "data=" + data +
                ", success=" + success +
                ", message='" + message + '\'' +
                '}';
    }

    public static class User{
        /**
         * id : 1
         * name : admin
         * telephone : 123456
         * password : 123
         */

        private int id;
        private String name;
        private String telephone;
        private String password;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getTelephone() {
            return telephone;
        }

        public void setTelephone(String telephone) {
            this.telephone = telephone;
        }

        public String getPassword() {
            return password;
        }

        public void setPassword(String password) {
            this.password = password;
        }

        @Override
        public String toString() {
            return "User{" +
                    "id=" + id +
                    ", name='" + name + '\'' +
                    ", telephone='" + telephone + '\'' +
                    ", password='" + password + '\'' +
                    '}';
        }
    }
}
